package com.yenlien.traceyun.business.interceptor;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @author: bigwangy@sina.com
 * @create: 2020-03-09
 * @description:
 **/

@Component
@PropertySource("classpath:common.properties")
public class CommonProperties {

    //最大过期时间分钟
    @Value("${traceyun.token.expire:60}")
    private int expire;

    //刷新时间
    @Value("${traceyun.token.refresh:120}")
    private int refresh;

    //token秘钥
    @Value("${traceyun.token.secret:123456}")
    private String secret;

    //七牛key
    @Value("${qiniu.accessKey}")
    private String qiniuAccessKey;

    //七牛秘钥
    @Value("${qiniu.secret}")
    private String qiniuSecret;

    //七牛bucket
    @Value("${qiniu.bucket}")
    private String qiniuBucket;

    //七牛访问path
    @Value("${qiniu.path}")
    private String qiniuPath;


    public int getExpire() {
        return expire;
    }

    public void setExpire(int expire) {
        this.expire = expire;
    }

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public int getRefresh() {
        return refresh;
    }

    public void setRefresh(int refresh) {
        this.refresh = refresh;
    }

    public String getQiniuAccessKey() {
        return qiniuAccessKey;
    }

    public void setQiniuAccessKey(String qiniuAccessKey) {
        this.qiniuAccessKey = qiniuAccessKey;
    }

    public String getQiniuSecret() {
        return qiniuSecret;
    }

    public void setQiniuSecret(String qiniuSecret) {
        this.qiniuSecret = qiniuSecret;
    }

    public String getQiniuBucket() {
        return qiniuBucket;
    }

    public void setQiniuBucket(String qiniuBucket) {
        this.qiniuBucket = qiniuBucket;
    }

    public String getQiniuPath() {
        return qiniuPath;
    }

    public void setQiniuPath(String qiniuPath) {
        this.qiniuPath = qiniuPath;
    }
}
